﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace Altairis.FluffyCloud.Data {
    public class GalleryFolderAclEntry : AclEntry {
        public const string OperationRead = "read";
        public const string OperationComment = "comment";

        [Required]
        public int GalleryFolderId { get; set; }
        public virtual Topic GalleryFolder { get; set; }

        public override string OperationDisplayName {
            get {
                switch (this.Operation) {
                    case OperationRead:
                        return "Číst obsah";
                    case OperationComment:
                        return "Psát komentáře";
                    default:
                        return this.OperationDisplayName;
                }
            }
        }

    }

}
